package edu.scau.mis.pos.service;

import edu.scau.mis.pos.domain.Product;

import java.util.List;

public interface IProductService {
    List<Product> listAllProduct();

    List<Product> selectProductByPage(Product product);

    List<Product> selectProductByPrice(int minPrice,int maxPrice);

    Product selectProductBySn(String productSn);

    List<Product> selectProductByName(String productName);

    int addProduct(Product product);

    int deleteProductBySn(String productSn);
    int deleteProductBySnBatch(List<String> productSnList);

    int updateProduct(Product product);

    Product getProductBySn(String productSn);

    String getCategoryNameById(String categoryId);

    void increaseStock(String productSn, Integer quantity);

    void decreaseSalesVolume(String productSn, Integer quantity);
}
